package avicit.cbb.techclass.tabledefine.commtablemanager.action.service.api;

import avicit.cbb.techclass.tabledefine.commtablemanager.domain.*;
import avicit.cbb.techclass.tabledefine.commtempletmanager.domain.CbbTempletCode;
import avicit.platform6.commons.utils.web.TreeNode;
import avicit.platform6.core.dao.Paging;
import avicit.platform6.core.jdbc.Page;
import avicit.platform6.core.rest.msg.ResponseMsg;
import avicit.platform6.core.restclient.RestClient;
import avicit.platform6.core.restclient.RestClientUtils;


import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.stereotype.Component;

import java.io.ByteArrayOutputStream;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Vector;

@Component
public class CommTableManagerServiceApi {


    /**
     * 服务编码
     */
    private static final String SERVICE_CODE = "filebasicmanager";

    private static final String BASE_PATH = "/api/avicit/cbb/techclass/tabledefine/commtablemanager/action/rest/CommTableManagerRest";

    @Autowired
    private RestClient restClient;

    /**
     * 得到tableId
     * @param sysId
     * @param tableName
     * @param param
     * @return
     */
    public String getTableIdBysysIdAndTableName(String sysId, String tableName, Map<String, Object> param) {
        String url = BASE_PATH + "/getTableIdBysysIdAndTableName";
        Map<String, Object> map = new HashMap<>();
        map.put("sysId",sysId);
        map.put("tableName",tableName);
        map.put("param",param);
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     * 获取列信息
     *
     * @author 朱锋
     * @param page
     * @param parameter
     * @param sysId
     * @return Paging<CbbTabColumns>
     * @throws
     */
    public Map<String, Object> getPageDetailList(Paging<CbbTabColumns> page, Map<String, Object> parameter, String sysId) {
        String url = BASE_PATH + "/getPageDetailList";
        Map<String, Object> map = new HashMap<>();
        map.put("page",page);
        map.put("parameter",parameter);
        map.put("sysId",sysId);
        ResponseMsg<Map<String,Object>> responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<Map<String, Object>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     * 根据tableId查找表是否为真是表
     * @param tableId
     * @return
     */
    public String findTableisTureTable(String tableId) {
        String url = BASE_PATH + "/findTableisTureTable";
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, tableId, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     *  判断该表是否有值
     * @param tableId
     * @return
     */
    public boolean checkColIsMust(String tableId) {
        String url = BASE_PATH + "/checkColIsMust";
        ResponseMsg<Boolean> responseMsg = restClient.doPost(SERVICE_CODE, url, tableId, new ParameterizedTypeReference<ResponseMsg<Boolean>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     *
     * @param page
     * @param parameter
     * @param sysId
     * @return
     */
    public Map<String, Object> getHiddenPageDetailList(Paging<CbbTabColumns> page, Map<String, Object> parameter, String sysId) {
        String url = BASE_PATH + "/getHiddenPageDetailList";
        Map<String,Object> map = new HashMap<>();
        map.put("page",page);
        map.put("parameter",parameter);
        map.put("sysId",sysId);
        ResponseMsg<Map<String, Object>> responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<Map<String, Object>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     * 删除字段
     * @param ccArray
     * @param sysId
     * @param nodeId
     * @param nodeName
     * @param tableName
     * @param isTrueTable
     * @param orgId
     * @param param
     */
    public void deleteCommCbbTabColumnsById(CbbTabColumns[] ccArray, String sysId, String nodeId, String nodeName, String tableName, String isTrueTable, String orgId, Map<String, Object> param) {
        String url = BASE_PATH + "/deleteCommCbbTabColumnsById";
        Map<String,Object> map = new HashMap<>();
        map.put("ccArray",ccArray);
        map.put("sysId",sysId);
        map.put("nodeId",nodeId);
        map.put("nodeName",nodeName);
        map.put("tableName",tableName);
        map.put("isTrueTable",isTrueTable);
        map.put("orgId",orgId);
        map.put("param",param);
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });

    }

    /**
     * 更新
     * @param tableId
     */
    public void updateColOrder(String tableId) {
        String url = BASE_PATH + "/updateColOrder";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, tableId, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 更新基本字段及实体表信息
     * @param ccArray
     * @param sysId
     * @param nodeId
     * @param nodeName
     * @param tableName
     * @param isTrue
     * @param params
     */
    public void updateCbbTabColumns(CbbTabColumns[] ccArray, String sysId, String nodeId, String nodeName, String tableName, boolean isTrue, Map<String, Object> params) {
        String url = BASE_PATH + "/updateCbbTabColumns";
        Map<String,Object> map = new HashMap<>();
        map.put("ccArray",ccArray);
        map.put("sysId",sysId);
        map.put("nodeId",nodeId);
        map.put("nodeName",nodeName);
        map.put("tableName",tableName);
        map.put("isTrue",isTrue);
        map.put("params",params);
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 存在，那么判断是否已经创建菜单
     * @param toString
     * @return
     */
    public boolean checkMenuPath(String toString) {
        String url = BASE_PATH + "/checkMenuPath";
        ResponseMsg<Boolean> responseMsg = restClient.doPost(SERVICE_CODE, url, toString, new ParameterizedTypeReference<ResponseMsg<Boolean>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);

    }


    /**
     * 创建菜单
     * @param toString
     * @param sysId
     * @param tableName
     * @param params
     */
    public void createMenu(String toString, String sysId, String tableName, Map<String, Object> params) {
        String url = BASE_PATH + "/createMenu";
        Map<String,Object> map = new HashMap<>();
        map.put("toString",toString);
        map.put("sysId",sysId);
        map.put("tableName",tableName);
        map.put("params",params);
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 得到tableID
     * @param sysId
     * @param tableName
     * @return
     */
    public String getCbbTableId(String sysId, String tableName) {
        String url = BASE_PATH + "/getCbbTableId";
        Map<String,Object> map = new HashMap<>();
        map.put("sysId",sysId);
        map.put("tableName",tableName);
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     * 获取数据
     * @param orgId
     * @param deptId
     * @param sysId
     * @param nodeId
     * @param tableId
     * @param isTemplet
     * @return
     */
    public List<Map<String, Object>> getCbbTabColumnsJiben(String orgId, String deptId, String sysId, String nodeId, String tableId, String isTemplet) {
        String url = BASE_PATH + "/getCbbTabColumnsJiben";
        Map<String,Object> map = new HashMap<>();
        map.put("orgId",orgId);
        map.put("deptId",deptId);
        map.put("sysId",sysId);
        map.put("nodeId",nodeId);
        map.put("tableId",tableId);
        map.put("isTemplet",isTemplet);
        ResponseMsg<List<Map<String, Object>>> responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<List<Map<String, Object>>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     *  导出excel
     * @param headValue
     * @param head
     * @param datas
     * @param os
     */
    public void exportData(List<String> headValue, List<String> head, List<Map<String, Object>> datas, ByteArrayOutputStream os) {
        String url = BASE_PATH + "/exportData";
        Map<String,Object> map = new HashMap<>();
        map.put("headValue",headValue);
        map.put("head",head);
        map.put("datas",datas);
        map.put("os",os);
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 构造文件名
     * @param tableId
     * @return
     */
    public String getFileName(String tableId) {
        String url = BASE_PATH + "/getFileName";
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, tableId, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     *  判断是否为系统通用代码
     * @param id
     */
    public void deleteCbbSysCodeRecord(String id) {
        String url = BASE_PATH + "/deleteCbbSysCodeRecord";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, id, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
    }


    /**
     * 删除代码维护
     * @param cbbTabColCode
     */
    public void deleteCbbTabColCodeById(CbbTabColCode cbbTabColCode) {
        String url = BASE_PATH + "/deleteCbbTabColCodeById";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, cbbTabColCode, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 新增
     * @param insertData
     * @param tableId
     * @param sysId
     */
    public void insertTabColCodeByJson(String insertData, String tableId, String sysId) {
        String url = BASE_PATH + "/insertTabColCodeByJson";
        Map<String,Object> map = new HashMap<>();
        map.put("insertData",insertData);
        map.put("tableId",tableId);
        map.put("sysId",sysId);
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 更新
     * @param ccArray
     * @param sysId
     * @param nodeId
     * @param nodeName
     */
    public void updateCbbTabColumnsTemp(CbbTabColumns[] ccArray, String sysId, String nodeId, String nodeName) {
        String url = BASE_PATH + "/updateCbbTabColumnsTemp";
        Map<String,Object> map = new HashMap<>();
        map.put("ccArray",ccArray);
        map.put("sysId",sysId);
        map.put("nodeId",nodeId);
        map.put("nodeName",nodeName);
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 更新
     * @param ccArrayCode
     * @param sysId
     * @param nodeId
     * @param nodeName
     */
    public void updateCbbTabColCode(List<CbbTabColCode> ccArrayCode, String sysId, String nodeId, String nodeName) {
        String url = BASE_PATH + "/updateCbbTabColCode";
        Map<String,Object> map = new HashMap<>();
        map.put("ccArrayCode",ccArrayCode);
        map.put("sysId",sysId);
        map.put("nodeId",nodeId);
        map.put("nodeName",nodeName);
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }


    /**
     *得到结果
     * @param page
     * @param parameter
     * @return
     */
    public Page<Map<String,Object>> getPageCodeDetailList(Paging<CbbTempletCode> page, Map<String, Object> parameter) {
        String url = BASE_PATH + "/getPageCodeDetailList";
        Map<String,Object> map = new HashMap<>();
        map.put("page",page);
        map.put("parameter",parameter);
        ResponseMsg<Page<Map<String,Object>>> responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<Page<Map<String,Object>>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     * // 导出excel
     * @param headValue
     * @param os
     */
    public void exportExcelModule(List<String> headValue, ByteArrayOutputStream os) {
        String url = BASE_PATH + "/exportExcelModule";
        Map<String,Object> map = new HashMap<>();
        map.put("headValue",headValue);
        map.put("os",os);
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     *得到分页
     * @param page
     * @param parameter
     * @param sysId
     * @return
     */
    public Map<String, Object> getPageDetailListForZL(Paging<CbbTabColumns> page, Map<String, Object> parameter, String sysId) {
        String url = BASE_PATH + "/getPageDetailListForZL";
        Map<String,Object> map = new HashMap<>();
        map.put("page",page);
        map.put("parameter",parameter);
        map.put("sysId",sysId);
        ResponseMsg<Map<String, Object>> responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<Map<String, Object>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     * 根据字段ID查找字段旧的配置信息
     * @param columnId
     * @return
     */
    public CbbTabColumns getCbbTabColumnsById(String columnId) {
        String url = BASE_PATH + "/getCbbTabColumnsById";
        ResponseMsg<CbbTabColumns> responseMsg = restClient.doPost(SERVICE_CODE, url, columnId, new ParameterizedTypeReference<ResponseMsg<CbbTabColumns>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     * 如果为组合项或者统计生成则删除旧的配置信息
     * @param columnId
     */
    public void deleteConfig(String columnId) {
        String url = BASE_PATH + "/deleteConfig";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, columnId, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 保存组合项的配置信息
     * @param idSet
     * @param groupJson
     * @param orgId
     * @param deptId
     * @param sysId
     */
    public void saveConfigGroupNew(String idSet, String groupJson, String orgId, String deptId, String sysId) {
        String url = BASE_PATH + "/saveConfigGroupNew";
        Map<String,Object> map = new HashMap<>();
        map.put("idSet",idSet);
        map.put("groupJson",groupJson);
        map.put("orgId",orgId);
        map.put("deptId",deptId);
        map.put("sysId",sysId);
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 统计字段顺序数组
     * @param idSet
     * @param configColumns
     * @param configInput
     * @param tableId
     * @param orgId
     * @param deptId
     * @param sysId
     * @param orders
     * @param operation
     */
    public void saveConfigTJSC(String idSet, String[] configColumns, String[] configInput, String tableId, String orgId, String deptId, String sysId, String[] orders, String operation) {
        String url = BASE_PATH + "/saveConfigTJSC";
        Map<String,Object> map = new HashMap<>();
        map.put("idSet",idSet);
        map.put("configColumns",configColumns);
        map.put("configInput",configInput);
        map.put("tableId",tableId);
        map.put("orgId",orgId);
        map.put("deptId",deptId);
        map.put("sysId",sysId);
        map.put("orders",orders);
        map.put("operation",operation);
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 根据nodeId判断，1、是否为2级节点2、该字段是否为案卷级表中的字段
     * @param nodeId
     * @return
     */
    public boolean checkNodeIsSecond(String nodeId) {
        String url = BASE_PATH + "/checkNodeIsSecond";

        ResponseMsg<Boolean> responseMsg = restClient.doPost(SERVICE_CODE, url, nodeId, new ParameterizedTypeReference<ResponseMsg<Boolean>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     * 根据nodeId判断，1、是否为2级节点2、该字段是否为案卷级表中的字段
     * @param nodeId
     * @return
     */
    public boolean checkTabIsAJJ(String tableId, String nodeId) {
        String url = BASE_PATH + "/checkTabIsAJJ";
        Map<String,Object> map = new HashMap<>();
        map.put("tableId",tableId);
        map.put("nodeId",nodeId);
        ResponseMsg<Boolean> responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<Boolean>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     * 双层结构类型(0：案卷，1：盒)
     * @param nodeId
     * @return
     */
    public String getTabLayerType(String nodeId) {
        String url = BASE_PATH + "/getTabLayerType";
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, nodeId, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     * 查找通用代码,并拼成json串
     * @param id
     * @return
     */
    public List<Object[]> getLookupCodeByColumnId(String id) {
        String url = BASE_PATH + "/getLookupCodeByColumnId";
        ResponseMsg<List<Object[]>> responseMsg = restClient.doPost(SERVICE_CODE, url, id, new ParameterizedTypeReference<ResponseMsg<List<Object[]>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     * 查找可组合字段
     * @param tableId
     * @param colType
     * @param id
     * @param orgId
     * @param deptId
     * @param sysId
     * @param nodeId
     * @return
     */
    public String getColNmaeByColType(String tableId, String colType, String id, String orgId, String deptId, String sysId, String nodeId) {
        String url = BASE_PATH + "/getColNmaeByColType";
        Map<String,Object> map = new HashMap<>();
        map.put("tableId",tableId);
        map.put("colType",colType);
        map.put("id",id);
        map.put("orgId",orgId);
        map.put("deptId",deptId);
        map.put("sysId",sysId);
        map.put("nodeId",nodeId);
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, id, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     * 获取字段配置信息
     * @param id
     * @return
     */
    public String getGroupConfigNew(String id) {
        String url = BASE_PATH + "/getGroupConfigNew";
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, id, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     * 根据字段ID查找字段的配置信息
     * @param id
     * @return
     */
    public List<String> getTjscConfigformanager(String id) {
        String url = BASE_PATH + "/getTjscConfigformanager";
        ResponseMsg<List<String>> responseMsg = restClient.doPost(SERVICE_CODE, url, id, new ParameterizedTypeReference<ResponseMsg<List<String>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     * 得到配置信息
     * @param id
     * @return
     */
    public Map<String, Object> getTjscConfig(String id) {
        String url = BASE_PATH + "/getTjscConfig";
        ResponseMsg<Map<String, Object>> responseMsg = restClient.doPost(SERVICE_CODE, url, id, new ParameterizedTypeReference<ResponseMsg<Map<String, Object>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     * 得到名字
     * @param colGeneMethodRule
     * @param customPath
     * @return
     */
    public String getCustomValue(String colGeneMethodRule, String customPath) {
        String url = BASE_PATH + "/getCustomValue";
        Map<String,Object> map = new HashMap<>();
        map.put("colGeneMethodRule",colGeneMethodRule);
        map.put("customPath",customPath);
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     * 构造json串
     * @param tableId
     * @param colType
     * @param columnId
     * @param orgId
     * @param deptId
     * @param sysId
     * @param nodeId
     * @return
     */
    public String getColNmaeByColTypeIncidentally(String tableId, String colType, String columnId, String orgId, String deptId, String sysId, String nodeId) {
        String url = BASE_PATH + "/getColNmaeByColTypeIncidentally";
        Map<String,Object> map = new HashMap<>();
        map.put("tableId",tableId);
        map.put("colType",colType);
        map.put("columnId",columnId);
        map.put("orgId",orgId);
        map.put("deptId",deptId);
        map.put("sysId",sysId);
        map.put("nodeId",nodeId);
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     * 如果是【代码维护】页面，那么给【生成方式】字段复制
     * @param ccArray
     * @param sysId
     * @param nodeId
     * @param nodeName
     * @param tableName
     * @param orgId
     * @param deptId
     */
    public void syntabNodeRecordData(CbbTabColumns[] ccArray, String sysId, String nodeId, String nodeName, String tableName, String orgId, String deptId) {
        String url = BASE_PATH + "/syntabNodeRecordData";
        Map<String,Object> map = new HashMap<>();
        map.put("ccArray",ccArray);
        map.put("sysId",sysId);
        map.put("nodeId",nodeId);
        map.put("nodeName",nodeName);
        map.put("tableName",tableName);
        map.put("orgId",orgId);
        map.put("deptId",deptId);
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 获取排序主表信息
     * @param page
     * @param parameter
     * @return
     */
    public Page<Map<String,Object>> getPageTabSortList(Paging<CbbTabColumns> page, Map<String, Object> parameter) {
        String url = BASE_PATH + "/getPageTabSortList";
        Map<String,Object> map = new HashMap<>();
        map.put("page",page);
        map.put("parameter",parameter);
        ResponseMsg<Page<Map<String,Object>>> responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<Page<Map<String,Object>>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     * 获取排序子表信息
     * @param page
     * @param parameter
     * @return
     */
    public Page<Map<String,Object>> getCbbTabColSortData(Paging<CbbTabColumns> page, Map<String, Object> parameter) {
        String url = BASE_PATH + "/getCbbTabColSortData";
        Map<String,Object> map = new HashMap<>();
        map.put("page",page);
        map.put("parameter",parameter);
        ResponseMsg<Page<Map<String,Object>>> responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<Page<Map<String,Object>>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     * 删除排序字段
     * @param id
     */
    public void deleteCbbTabSort(String id) {
        String url = BASE_PATH + "/deleteCbbTabSort";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, id, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 调用新增方法
     * @param cbbTabColSort
     */
    public void insertCbbTabColSorte(CbbTabColSort cbbTabColSort) {
        String url = BASE_PATH + "/insertCbbTabColSorte";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, cbbTabColSort, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 调用更新方法
     * @param cbbTabColSort
     */
    public void updateCbbTabColSort(CbbTabColSort cbbTabColSort) {
        String url = BASE_PATH + "/updateCbbTabColSort";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, cbbTabColSort, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 获取分类检索主表信息
     * @param page
     * @param parameter
     * @return
     */
    public Page<Map<String,Object>> getPageTabSearchList(Paging<CbbTabColumns> page, Map<String, Object> parameter) {
        String url = BASE_PATH + "/getPageTabSearchList";
        Map<String,Object> map = new HashMap<>();
        map.put("page",page);
        map.put("parameter",parameter);
        ResponseMsg<Page<Map<String,Object>>> responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<Page<Map<String,Object>>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     * 获取分类检索子表信息
     * @param page
     * @param parameter
     * @return
     */
    public Page<Map<String,Object>> getCbbTabColSearchData(Paging<CbbTabColumns> page, Map<String, Object> parameter) {
        String url = BASE_PATH + "/getCbbTabColSearchData";
        Map<String,Object> map = new HashMap<>();
        map.put("page",page);
        map.put("parameter",parameter);
        ResponseMsg<Page<Map<String,Object>>> responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<Page<Map<String,Object>>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     * 删除分类检索字段
     * @param id
     */
    public void deleteCbbTabSearch(String id) {
        String url = BASE_PATH + "/deleteCbbTabSearch";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, id, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 调用新增方法
     * @param cbbTabColSearch
     */
    public void insertCbbTabColSearch(CbbTabColSearch cbbTabColSearch) {
        String url = BASE_PATH + "/insertCbbTabColSearch";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, cbbTabColSearch, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 通过id得到
     * @param id
     * @return
     */
    public CbbTabColSearch getCbbTabColSearchById(String id) {
        String url = BASE_PATH + "/getCbbTabColSearchById";
        ResponseMsg<CbbTabColSearch> responseMsg = restClient.doPost(SERVICE_CODE, url, id, new ParameterizedTypeReference<ResponseMsg<CbbTabColSearch>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     * 修改
     * @param cbbTabColSearch
     */
    public void updateCbbTabColSearch(CbbTabColSearch cbbTabColSearch) {
        String url = BASE_PATH + "/updateCbbTabColSearch";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, cbbTabColSearch, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 根据表ID获取设置为可见的字段集合
     * @param tableId
     * @return
     */
    public List<Object[]> getCbbTabColsByTableId(String tableId) {
        String url = BASE_PATH + "/getCbbTabColsByTableId";
        ResponseMsg<List<Object[]>> responseMsg = restClient.doPost(SERVICE_CODE, url, tableId, new ParameterizedTypeReference<ResponseMsg<List<Object[]>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     * 获取索引主界面表格数据
     * @param page
     * @param parameter
     * @param sysId
     * @return
     */
    public Map<String, Object> getIndexPageDetailList(Paging<CbbTabColumns> page, Map<String, Object> parameter, String sysId) {
        String url = BASE_PATH + "/getIndexPageDetailList";
        Map<String,Object> map = new HashMap<>();
        map.put("page",page);
        map.put("parameter",parameter);
        map.put("sysId",sysId);
        ResponseMsg<Map<String, Object>> responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<Map<String, Object>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     * 判断该索引名是否重复
     * @param indexName
     * @param insertData
     * @return
     */
    public boolean checkIndexNameIsUnique(String indexName, String insertData) {
        String url = BASE_PATH + "/checkIndexNameIsUnique";
        Map<String,Object> map = new HashMap<>();
        map.put("indexName",indexName);
        map.put("insertData",insertData);
        ResponseMsg<Boolean> responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<Boolean>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     * 删除索引
     * @param deleteData
     * @param sysId
     * @param nodeId
     * @param nodeName
     * @param tableName
     * @param orgId
     * @param deptId
     */
    public void deleteCbbTabIndexDataById(String deleteData, String sysId, String nodeId, String nodeName, String tableName, String orgId, String deptId) {
        String url = BASE_PATH + "/deleteCbbTabIndexDataById";
        Map<String,Object> map = new HashMap<>();
        map.put("deleteData",deleteData);
        map.put("sysId",sysId);
        map.put("nodeId",nodeId);
        map.put("nodeName",nodeName);
        map.put("tableName",tableName);
        map.put("orgId",orgId);
        map.put("deptId",deptId);
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 解析2003excel文件
     * @param filePath
     * @return
     */
    public Map<String, Vector<Vector<String>>> readXls(String filePath) {
        String url = BASE_PATH + "/readXls";
        ResponseMsg<Map<String, Vector<Vector<String>>>> responseMsg = restClient.doPost(SERVICE_CODE, url, filePath, new ParameterizedTypeReference<ResponseMsg<Map<String, Vector<Vector<String>>>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     * 解析2007excel文件
     * @param filePath
     * @return
     */
    public Map<String, Vector<Vector<String>>> readXlsx(String filePath) {
        String url = BASE_PATH + "/readXlsx";
        ResponseMsg<Map<String, Vector<Vector<String>>>> responseMsg = restClient.doPost(SERVICE_CODE, url, filePath, new ParameterizedTypeReference<ResponseMsg<Map<String, Vector<Vector<String>>>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     * 调用方法验证数据
     * @param datas
     * @param tableId
     */
    public void testExcel(Vector<Vector<String>> datas, String tableId) {
        String url = BASE_PATH + "/testExcel";
        Map<String,Object> map = new HashMap<>();
        map.put("datas",datas);
        map.put("tableId",tableId);
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 系统通用代码导入方法
     * @param cid
     * @param tid
     * @param fid
     * @param sysId
     * @param orgId
     * @param deptId
     */
    public void insertSysCode(String cid, String tid, String fid, String sysId, String orgId, String deptId) {
        String url = BASE_PATH + "/insertSysCode";
        Map<String,Object> map = new HashMap<>();
        map.put("cid",cid);
        map.put("tid",tid);
        map.put("fid",fid);
        map.put("sysId",sysId);
        map.put("orgId",orgId);
        map.put("deptId",deptId);
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<T>>() {
        });
    }

    /**
     * 查找可组合字段构造下拉列表数据
     * @param tableId
     * @param colType
     * @param id
     * @param orgId
     * @param deptId
     * @param sysId
     * @param nodeId
     * @return
     */
    public String getColNameByColTypeForTJSC(String tableId, String colType, String id, String orgId, String deptId, String sysId, String nodeId) {
        String url = BASE_PATH + "/getColNameByColTypeForTJSC";
        Map<String,Object> map = new HashMap<>();
        map.put("tableId",tableId);
        map.put("colType",colType);
        map.put("id",id);
        map.put("orgId",orgId);
        map.put("deptId",deptId);
        map.put("sysId",sysId);
        map.put("nodeId",nodeId);
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, map, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }

    /**
     *根据代码维护信息ID获取该对象
     * @param id
     * @return
     */
    public CbbTabColCode getCbbTabColCodeById(String id) {
        String url = BASE_PATH + "/getCbbTabColCodeById";
        ResponseMsg<CbbTabColCode> responseMsg = restClient.doPost(SERVICE_CODE, url, id, new ParameterizedTypeReference<ResponseMsg<CbbTabColCode>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }



//    public String getFileName(String tableId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("tableId",tableId);
//        String url = BASE_PATH + "/getFileName/v1";
//        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }


    /**
     *获取基本列信息(节点著录定义)
     * @param page
     * @param parameter
     * @return
     */
    public Page<Map<String, Object>> getPageNodeRecordColList(Paging<CbbTabColumns> page,Map<String, Object> parameter) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("page",page);
        resMaps.put("parameter",parameter);
        String url = BASE_PATH + "/getPageNodeRecordColList/v1";
        ResponseMsg<Page<Map<String, Object>>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Page<Map<String, Object>>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     *根据sysId和nodeId查询tableId
     * @param sysId
     * @param nodeId
     * @return
     */
    public String getTableIdBysnId(String sysId,String nodeId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("sysId",sysId);
        resMaps.put("nodeId",nodeId);
        String url = BASE_PATH + "/getTableIdBysnId/v1";
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     *生成动态表
     * @param tableId
     * @param sysId
     * @param orgId
     */
    public void insertdbTable(String tableId,String sysId,String orgId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("tableId",tableId);
        resMaps.put("sysId",sysId);
        resMaps.put("orgId",orgId);
        String url = BASE_PATH + "/insertdbTable/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }


    /**
     *更新节点著录信息
     * @param list
     * @param sysId
     * @param tabNodeId
     * @param orgId
     * @param deptId
     * @param tableId
     */
    public void updateCbbTabRecord(List<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns> list,String sysId,String tabNodeId,String orgId,String deptId,String tableId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("list",list);
        resMaps.put("sysId",sysId);
        resMaps.put("tabNodeId",tabNodeId);
        resMaps.put("orgId",orgId);
        resMaps.put("deptId",deptId);
        resMaps.put("tableId",tableId);
        String url = BASE_PATH + "/updateCbbTabRecord/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }


    /**
     *更新基本字段及实体表信息
     * @param cbbTabColumnsArray
     * @param sysId
     * @param nodeId
     * @param nodeName
     * @param tableName
     * @param isTrue
     * @param param
     */
    public void updateCbbTabColumns(avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns[] cbbTabColumnsArray,String sysId,String nodeId,String nodeName,String tableName,Boolean isTrue,Map<String, Object> param) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("cbbTabColumnsArray",cbbTabColumnsArray);
        resMaps.put("sysId",sysId);
        resMaps.put("nodeId",nodeId);
        resMaps.put("nodeName",nodeName);
        resMaps.put("tableName",tableName);
        resMaps.put("isTrue",isTrue);
        resMaps.put("param",param);
        String url = BASE_PATH + "/updateCbbTabColumns/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }


    /**
     *新增列各种信息
     * @param cbbTabColumnsArray
     * @param sysId
     * @param nodeId
     * @param nodeName
     * @param tableName
     * @param orgId
     * @param deptId
     * @param loginUserId
     * @param loginIp
     * @param isTrueTable
     */
    public void insertCbbTabColumns(avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns[] cbbTabColumnsArray,String sysId,String nodeId,String nodeName,String tableName,String orgId,String deptId,String loginUserId,String loginIp,String isTrueTable) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("cbbTabColumnsArray",cbbTabColumnsArray);
        resMaps.put("sysId",sysId);
        resMaps.put("nodeId",nodeId);
        resMaps.put("nodeName",nodeName);
        resMaps.put("tableName",tableName);
        resMaps.put("orgId",orgId);
        resMaps.put("deptId",deptId);
        resMaps.put("loginUserId",loginUserId);
        resMaps.put("loginIp",loginIp);
        resMaps.put("isTrueTable",isTrueTable);
        String url = BASE_PATH + "/insertCbbTabColumns/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }





//    public void deleteCbbTabColCodeById(avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColCode cbbTabColCode) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("cbbTabColCode",cbbTabColCode);
//        String url = BASE_PATH + "/deleteCbbTabColCodeById/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }





//    public void updateCbbTabColCode(List<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColCode> cbbTabColCodeArray,String sysId,String nodeId,String nodeName) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("cbbTabColCodeArray",cbbTabColCodeArray);
//        resMaps.put("sysId",sysId);
//        resMaps.put("nodeId",nodeId);
//        resMaps.put("nodeName",nodeName);
//        String url = BASE_PATH + "/updateCbbTabColCode/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }


    /**
     *递归获取Tree当前节点下数据
     * @param id
     * @param sysId
     * @param orgId
     * @return
     */
    public List<TreeNode> getTableTreeNodes(String id,String sysId,String orgId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("id",id);
        resMaps.put("sysId",sysId);
        resMaps.put("orgId",orgId);
        String url = BASE_PATH + "/getTableTreeNodes/v1";
        ResponseMsg<List<TreeNode>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<List<TreeNode>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }





//    public CbbTabColCode getCbbTabColCodeById(String id) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("id",id);
//        String url = BASE_PATH + "/getCbbTabColCodeById/v1";
//        ResponseMsg<CbbTabColCode> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColCode>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public void deleteCommCbbTabColumnsById(avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns[] cbbTabColumnsArray,String sysId,String nodeId,String nodeName,String tableName,String isTrueTable,String orgId,Map<String, Object> param) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("cbbTabColumnsArray",cbbTabColumnsArray);
//        resMaps.put("sysId",sysId);
//        resMaps.put("nodeId",nodeId);
//        resMaps.put("nodeName",nodeName);
//        resMaps.put("tableName",tableName);
//        resMaps.put("isTrueTable",isTrueTable);
//        resMaps.put("orgId",orgId);
//        resMaps.put("param",param);
//        String url = BASE_PATH + "/deleteCommCbbTabColumnsById/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }





//    public Page<Map<String, Object>> getPageCodeDetailList(avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtempletmanager.domain.CbbTempletCode> page,Map<String, Object> parameter) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("page",page);
//        resMaps.put("parameter",parameter);
//        String url = BASE_PATH + "/getPageCodeDetailList/v1";
//        ResponseMsg<Page<Map<String, Object>>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<com.github.pagehelper.Page<Map<String, Object>>>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public void insertTabColCodeByJson(String insertData,String tableId,String sysId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("insertData",insertData);
//        resMaps.put("tableId",tableId);
//        resMaps.put("sysId",sysId);
//        String url = BASE_PATH + "/insertTabColCodeByJson/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }





//    public void deleteCbbSysCodeRecord(String colId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("colId",colId);
//        String url = BASE_PATH + "/deleteCbbSysCodeRecord/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }





//    public String getTableIdBysysIdAndTableName(String sysId,String tableName,Map<String, Object> param) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("sysId",sysId);
//        resMaps.put("tableName",tableName);
//        resMaps.put("param",param);
//        String url = BASE_PATH + "/getTableIdBysysIdAndTableName/v1";
//        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }


    /**
     *复制参考模板字段信息
     * @param ids
     * @param sysId
     * @param tableName
     * @param orgId
     * @param deptId
     */
    public void copyCommTempletField(String ids,String sysId,String tableName,String orgId,String deptId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("ids",ids);
        resMaps.put("sysId",sysId);
        resMaps.put("tableName",tableName);
        resMaps.put("orgId",orgId);
        resMaps.put("deptId",deptId);
        String url = BASE_PATH + "/copyCommTempletField/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }


    /**
     *获取节点著录定义列表信息
     * @param page
     * @param parameter
     * @return
     */
    public Page<Map<String, Object>> getPageNodeRecordList(Paging<CbbTabColumns> page,Map<String, Object> parameter) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("page",page);
        resMaps.put("parameter",parameter);
        String url = BASE_PATH + "/getPageNodeRecordList/v1";
        ResponseMsg<Page<Map<String, Object>>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Page<Map<String, Object>>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }





//    public CbbTabColumns getCbbTabColumnsById(String id) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("id",id);
//        String url = BASE_PATH + "/getCbbTabColumnsById/v1";
//        ResponseMsg<CbbTabColumns> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public Map<String, Object> getPageDetailList(avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns> page,Map<String, Object> parameter,String sysId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("page",page);
//        resMaps.put("parameter",parameter);
//        resMaps.put("sysId",sysId);
//        String url = BASE_PATH + "/getPageDetailList/v1";
//        ResponseMsg<Map<String, Object>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Map<String, Object>>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public void updateCbbTabColumnsTemp(avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns[] cbbTabColumnsArray,String sysId,String nodeId,String nodeName) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("cbbTabColumnsArray",cbbTabColumnsArray);
//        resMaps.put("sysId",sysId);
//        resMaps.put("nodeId",nodeId);
//        resMaps.put("nodeName",nodeName);
//        String url = BASE_PATH + "/updateCbbTabColumnsTemp/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }


    /**
     *获取关系ID 参数：系统标识ID，节点ID，库表ID
     * @param sysId
     * @param nodeId
     * @param tableId
     * @return
     */
    public String getCbbTabNodeId(String sysId,String nodeId,String tableId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("sysId",sysId);
        resMaps.put("nodeId",nodeId);
        resMaps.put("tableId",tableId);
        String url = BASE_PATH + "/getCbbTabNodeId/v1";
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }





//    public Boolean checkColIsMust(String tableId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("tableId",tableId);
//        String url = BASE_PATH + "/checkColIsMust/v1";
//        ResponseMsg<Boolean> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Boolean>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }


    /**
     *保存组合项配置信息
     * @param sourceColumnId
     * @param configColumns
     * @param configInput
     * @param tableId
     * @param orgId
     * @param deptId
     * @param sysId
     * @param orders
     */
    public void saveConfigGroup(String sourceColumnId,String[] configColumns,String[] configInput,String tableId,String orgId,String deptId,String sysId,String[] orders) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("sourceColumnId",sourceColumnId);
        resMaps.put("configColumns",configColumns);
        resMaps.put("configInput",configInput);
        resMaps.put("tableId",tableId);
        resMaps.put("orgId",orgId);
        resMaps.put("deptId",deptId);
        resMaps.put("sysId",sysId);
        resMaps.put("orders",orders);
        String url = BASE_PATH + "/saveConfigGroup/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }


    /**
     *创建表与节点关联关系 参数：系统标识ID，节点ID，库表ID
     * @param sysId
     * @param nodeId
     * @param tableId
     * @param orgId
     * @param deptId
     * @param loginUserId
     * @param loginIp
     */
    public void createCbbTabNode(String sysId,String nodeId,String tableId,String orgId,String deptId,String loginUserId,String loginIp) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("sysId",sysId);
        resMaps.put("nodeId",nodeId);
        resMaps.put("tableId",tableId);
        resMaps.put("orgId",orgId);
        resMaps.put("deptId",deptId);
        resMaps.put("loginUserId",loginUserId);
        resMaps.put("loginIp",loginIp);
        String url = BASE_PATH + "/createCbbTabNode/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }


    /**
     *新增代码维护信息
     * @param cbbTabColCode
     */
    public void insertTabColCode(avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColCode cbbTabColCode) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("cbbTabColCode",cbbTabColCode);
        String url = BASE_PATH + "/insertTabColCode/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }


//    /**
//     *
//     * @param id
//     * @return
//     */
//    public void insertSysCode(String cid,String tid,String fid,String sysId,String orgId,String deptId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("cid",cid);
//        resMaps.put("tid",tid);
//        resMaps.put("fid",fid);
//        resMaps.put("sysId",sysId);
//        resMaps.put("orgId",orgId);
//        resMaps.put("deptId",deptId);
//        String url = BASE_PATH + "/insertSysCode/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }


    /**
     *根据表信息ID获取表信息
     * @param id
     * @return
     */
    public CbbTables getCbbTablesById(String id) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("id",id);
        String url = BASE_PATH + "/getCbbTablesById/v1";
        ResponseMsg<CbbTables> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTables>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     *初始化获取组合项配置信息
     * @param sourceId
     * @return
     */
    public Map<String, Object> getGroupConfig(String sourceId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("sourceId",sourceId);
        String url = BASE_PATH + "/getGroupConfig/v1";
        ResponseMsg<Map<String, Object>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Map<String, Object>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }





//    public Boolean checkMenuPath(String path) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("path",path);
//        String url = BASE_PATH + "/checkMenuPath/v1";
//        ResponseMsg<Boolean> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Boolean>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public void createMenu(String path,String sysId,String tableName,Map<String, Object> param) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("path",path);
//        resMaps.put("sysId",sysId);
//        resMaps.put("tableName",tableName);
//        resMaps.put("param",param);
//        String url = BASE_PATH + "/createMenu/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }


    /**
     *将excel文件中的数据添加到数据库表中
     * @param datas
     * @param sysId
     * @param nodeId
     * @param nodeName
     * @param tableName
     * @param orgId
     * @param deptId
     * @param loginUserId
     * @param loginIp
     * @param isTrueTable
     */
    public void insertFromExcel(Vector<Vector<String>> datas,String sysId,String nodeId,String nodeName,String tableName,String orgId,String deptId,String loginUserId,String loginIp,String isTrueTable) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("datas",datas);
        resMaps.put("sysId",sysId);
        resMaps.put("nodeId",nodeId);
        resMaps.put("nodeName",nodeName);
        resMaps.put("tableName",tableName);
        resMaps.put("orgId",orgId);
        resMaps.put("deptId",deptId);
        resMaps.put("loginUserId",loginUserId);
        resMaps.put("loginIp",loginIp);
        resMaps.put("isTrueTable",isTrueTable);
        String url = BASE_PATH + "/insertFromExcel/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }


    /**
     *代码维护模块检测excel数据合法性
     * @param datas
     * @param columnId
     */
    public void testColCodeExcel(Vector<Vector<String>> datas,String columnId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("datas",datas);
        resMaps.put("columnId",columnId);
        String url = BASE_PATH + "/testColCodeExcel/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }


    /**
     *验证此真实值是否存在
     * @param columnId
     * @param lookupCode
     * @param id
     * @return
     */
    public Boolean checkCode(String columnId,String lookupCode,String id) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("columnId",columnId);
        resMaps.put("lookupCode",lookupCode);
        resMaps.put("id",id);
        String url = BASE_PATH + "/checkCode/v1";
        ResponseMsg<Boolean> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Boolean>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     *根据userId查找userName
     * @param id
     * @return
     */
    public String getUserNameById(String id) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("id",id);
        String url = BASE_PATH + "/getUserNameById/v1";
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }





//    public String getCbbTableId(String sysId,String tableName) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("sysId",sysId);
//        resMaps.put("tableName",tableName);
//        String url = BASE_PATH + "/getCbbTableId/v1";
//        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public void updateColOrder(String tableId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("tableId",tableId);
//        String url = BASE_PATH + "/updateColOrder/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }





//    public void deleteCbbTabSort(String id) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("id",id);
//        String url = BASE_PATH + "/deleteCbbTabSort/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }


    /**
     *验证字段是否重名
     * @param id
     * @param sysId
     * @param tableName
     * @return
     */
    public Boolean checkField(String id,String sysId,String tableName) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("id",id);
        resMaps.put("sysId",sysId);
        resMaps.put("tableName",tableName);
        String url = BASE_PATH + "/checkField/v1";
        ResponseMsg<Boolean> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Boolean>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }





//    public Map<String, Vector<Vector<String>>> readXls(String fileName) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("fileName",fileName);
//        String url = BASE_PATH + "/readXls/v1";
//        ResponseMsg<Map<String, Vector<Vector<String>>>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Map<String, Vector<Vector<String>>>>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }


    /**
     *根据deptId查找deptName
     * @param id
     * @return
     */
    public String getDeptNameById(String id) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("id",id);
        String url = BASE_PATH + "/getDeptNameById/v1";
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     *验证是否节点著录表存在数据
     * @param tabNodeId
     * @param tableId
     * @return
     */
    public Boolean checkNodeRecord(String tabNodeId,String tableId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("tabNodeId",tabNodeId);
        resMaps.put("tableId",tableId);
        String url = BASE_PATH + "/checkNodeRecord/v1";
        ResponseMsg<Boolean> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Boolean>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }





//    public Map<String, Vector<Vector<String>>> readXlsx(String fileName) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("fileName",fileName);
//        String url = BASE_PATH + "/readXlsx/v1";
//        ResponseMsg<Map<String, Vector<Vector<String>>>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Map<String, Vector<Vector<String>>>>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }


    /**
     *cbbTabColumns该tid下的列最大排序值
     * @param tid
     * @return
     */
    public Integer selectMaxOrder(String tid) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("tid",tid);
        String url = BASE_PATH + "/selectMaxOrder/v1";
        ResponseMsg<Integer> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Integer>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }





//    public Boolean checkTabIsAJJ(String tableId,String nodeId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("tableId",tableId);
//        resMaps.put("nodeId",nodeId);
//        String url = BASE_PATH + "/checkTabIsAJJ/v1";
//        ResponseMsg<Boolean> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Boolean>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public void exportData(List<String> headValue,List<String> head,List<Map<String, Object>> data,java.io.ByteArrayOutputStream out) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("headValue",headValue);
//        resMaps.put("head",head);
//        resMaps.put("data",data);
//        resMaps.put("out",out);
//        String url = BASE_PATH + "/exportData/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }


    /**
     *根据sysCode查找sysName
     * @param code
     * @return
     */
    public String getSysNameByCode(String code) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("code",code);
        String url = BASE_PATH + "/getSysNameByCode/v1";
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }





//    public void testExcel(Vector<Vector<String>> datas,String tableId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("datas",datas);
//        resMaps.put("tableId",tableId);
//        String url = BASE_PATH + "/testExcel/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }





//    public Map<String, Object> getTjscConfig(String sourceId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("sourceId",sourceId);
//        String url = BASE_PATH + "/getTjscConfig/v1";
//        ResponseMsg<Map<String, Object>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Map<String, Object>>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public void saveConfigTJSC(String sourceColumnId,String[] configColumns,String[] configInput,String tableId,String orgId,String deptId,String sysId,String[] orders,String operation) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("sourceColumnId",sourceColumnId);
//        resMaps.put("configColumns",configColumns);
//        resMaps.put("configInput",configInput);
//        resMaps.put("tableId",tableId);
//        resMaps.put("orgId",orgId);
//        resMaps.put("deptId",deptId);
//        resMaps.put("sysId",sysId);
//        resMaps.put("orders",orders);
//        resMaps.put("operation",operation);
//        String url = BASE_PATH + "/saveConfigTJSC/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }





//    public void deleteConfig(String sourColumnId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("sourColumnId",sourColumnId);
//        String url = BASE_PATH + "/deleteConfig/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }


    /**
     *获取可配置的分类检索字段
     * @param sysId
     * @param orgId
     * @param deptId
     * @param userId
     * @return
     */
    public String getSearchCol(String sysId,String orgId,String deptId,String userId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("sysId",sysId);
        resMaps.put("orgId",orgId);
        resMaps.put("deptId",deptId);
        resMaps.put("userId",userId);
        String url = BASE_PATH + "/getSearchCol/v1";
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }





//    public String getTabLayerType(String nodeId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("nodeId",nodeId);
//        String url = BASE_PATH + "/getTabLayerType/v1";
//        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public String getCustomValue(String value,String path) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("value",value);
//        resMaps.put("path",path);
//        String url = BASE_PATH + "/getCustomValue/v1";
//        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public Boolean checkNodeIsSecond(String nodeId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("nodeId",nodeId);
//        String url = BASE_PATH + "/checkNodeIsSecond/v1";
//        ResponseMsg<Boolean> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Boolean>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }


    /**
     *根据表ID获取表中文名
     * @param tabId
     * @return
     */
    public String getTabTitleByTabId(String tabId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("tabId",tabId);
        String url = BASE_PATH + "/getTabTitleByTabId/v1";
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }





//    public String getGroupConfigNew(String sourceId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("sourceId",sourceId);
//        String url = BASE_PATH + "/getGroupConfigNew/v1";
//        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public String getColNmaeByColType(String tableId,String colType,String colId,String orgId,String deptId,String sysId,String nodeId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("tableId",tableId);
//        resMaps.put("colType",colType);
//        resMaps.put("colId",colId);
//        resMaps.put("orgId",orgId);
//        resMaps.put("deptId",deptId);
//        resMaps.put("sysId",sysId);
//        resMaps.put("nodeId",nodeId);
//        String url = BASE_PATH + "/getColNmaeByColType/v1";
//        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public void syntabNodeRecordData(avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns[] cbbTabColumnsArray,String sysId,String nodeId,String nodeName,String tableName,String orgId,String deptId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("cbbTabColumnsArray",cbbTabColumnsArray);
//        resMaps.put("sysId",sysId);
//        resMaps.put("nodeId",nodeId);
//        resMaps.put("nodeName",nodeName);
//        resMaps.put("tableName",tableName);
//        resMaps.put("orgId",orgId);
//        resMaps.put("deptId",deptId);
//        String url = BASE_PATH + "/syntabNodeRecordData/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }





//    public Map<String, Object> getHiddenPageDetailList(avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns> page,Map<String, Object> parameter,String sysId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("page",page);
//        resMaps.put("parameter",parameter);
//        resMaps.put("sysId",sysId);
//        String url = BASE_PATH + "/getHiddenPageDetailList/v1";
//        ResponseMsg<Map<String, Object>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Map<String, Object>>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }


    /**
     *根据tableId、nodeId获取tabNodeId（文件类型取‘个人文件’‘部门文件’节点ID作为tabNodeId）
     * @param sysId
     * @param tableId
     * @param nodeId
     * @return
     */
    public List<Object> getCbbTabNodeIdByTableId(String sysId,String tableId,String nodeId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("sysId",sysId);
        resMaps.put("tableId",tableId);
        resMaps.put("nodeId",nodeId);
        String url = BASE_PATH + "/getCbbTabNodeIdByTableId/v1";
        ResponseMsg<List<Object>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<List<Object>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     *根据字段名获取字段ID
     * @param name
     * @param tableId
     * @return
     */
    public String getColumnIdByName(String name,String tableId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("name",name);
        resMaps.put("tableId",tableId);
        String url = BASE_PATH + "/getColumnIdByName/v1";
        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }





//    public String getColNmaeByColTypeIncidentally(String tableId,String colType,String colId,String orgId,String deptId,String sysId,String nodeId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("tableId",tableId);
//        resMaps.put("colType",colType);
//        resMaps.put("colId",colId);
//        resMaps.put("orgId",orgId);
//        resMaps.put("deptId",deptId);
//        resMaps.put("sysId",sysId);
//        resMaps.put("nodeId",nodeId);
//        String url = BASE_PATH + "/getColNmaeByColTypeIncidentally/v1";
//        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }


    /**
     *复制库结构字段
     * @param ids
     * @param sysId
     * @param tableName
     * @param orgId
     * @param deptId
     * @param param
     */
    public void copyCbbTabColumns(String ids,String sysId,String tableName,String orgId,String deptId,Map<String, Object> param) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("ids",ids);
        resMaps.put("sysId",sysId);
        resMaps.put("tableName",tableName);
        resMaps.put("orgId",orgId);
        resMaps.put("deptId",deptId);
        resMaps.put("param",param);
        String url = BASE_PATH + "/copyCbbTabColumns/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }





//    public void insertCbbTabColSorte(avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColSort cbbTabColSort) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("cbbTabColSort",cbbTabColSort);
//        String url = BASE_PATH + "/insertCbbTabColSorte/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }





//    public List<Object[]> getCbbTabColsByTableId(String tableId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("tableId",tableId);
//        String url = BASE_PATH + "/getCbbTabColsByTableId/v1";
//        ResponseMsg<List<Object[]>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<List<Object[]>>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public String findTableisTureTable(String tableId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("tableId",tableId);
//        String url = BASE_PATH + "/findTableisTureTable/v1";
//        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public Page<Map<String, Object>> getCbbTabColSearchData(avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns> page,Map<String, Object> parameter) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("page",page);
//        resMaps.put("parameter",parameter);
//        String url = BASE_PATH + "/getCbbTabColSearchData/v1";
//        ResponseMsg<Page<Map<String, Object>>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<com.github.pagehelper.Page<Map<String, Object>>>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public void saveConfigGroupNew(String sourceColumnId,String json,String orgId,String deptId,String sysId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("sourceColumnId",sourceColumnId);
//        resMaps.put("json",json);
//        resMaps.put("orgId",orgId);
//        resMaps.put("deptId",deptId);
//        resMaps.put("sysId",sysId);
//        String url = BASE_PATH + "/saveConfigGroupNew/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }





//    public Page<Map<String, Object>> getCbbTabColSortData(avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns> page,Map<String, Object> parameter) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("page",page);
//        resMaps.put("parameter",parameter);
//        String url = BASE_PATH + "/getCbbTabColSortData/v1";
//        ResponseMsg<Page<Map<String, Object>>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<com.github.pagehelper.Page<Map<String, Object>>>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }


    /**
     *同步树结构和库表
     * @param param
     */
    public void doSyncArchiveClassAndTables(Map<String, Object> param) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("param",param);
        String url = BASE_PATH + "/doSyncArchiveClassAndTables/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }





//    public List<Map<String, Object>> getCbbTabColumnsJiben(String orgId,String deptId,String sysId,String nodeId,String tableId,String isTemplet) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("orgId",orgId);
//        resMaps.put("deptId",deptId);
//        resMaps.put("sysId",sysId);
//        resMaps.put("nodeId",nodeId);
//        resMaps.put("tableId",tableId);
//        resMaps.put("isTemplet",isTemplet);
//        String url = BASE_PATH + "/getCbbTabColumnsJiben/v1";
//        ResponseMsg<List<Map<String, Object>>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<List<Map<String, Object>>>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public Page<Map<String, Object>> getPageTabSortList(avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns> page,Map<String, Object> parameter) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("page",page);
//        resMaps.put("parameter",parameter);
//        String url = BASE_PATH + "/getPageTabSortList/v1";
//        ResponseMsg<Page<Map<String, Object>>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<com.github.pagehelper.Page<Map<String, Object>>>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public Map<String, Object> getIndexPageDetailList(avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns> page,Map<String, Object> parameter,String sysId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("page",page);
//        resMaps.put("parameter",parameter);
//        resMaps.put("sysId",sysId);
//        String url = BASE_PATH + "/getIndexPageDetailList/v1";
//        ResponseMsg<Map<String, Object>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Map<String, Object>>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public String getColNameByColTypeForTJSC(String tableId,String colType,String colId,String orgId,String deptId,String sysId,String nodeId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("tableId",tableId);
//        resMaps.put("colType",colType);
//        resMaps.put("colId",colId);
//        resMaps.put("orgId",orgId);
//        resMaps.put("deptId",deptId);
//        resMaps.put("sysId",sysId);
//        resMaps.put("nodeId",nodeId);
//        String url = BASE_PATH + "/getColNameByColTypeForTJSC/v1";
//        ResponseMsg<String> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<String>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }


    /**
     *根据表ID删除组合项、统计生成配置信息
     * @param tableId
     */
    public void deleteGroupConfigByTableId(String tableId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("tableId",tableId);
        String url = BASE_PATH + "/deleteGroupConfigByTableId/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }





//    public void deleteCbbTabSearch(String id) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("id",id);
//        String url = BASE_PATH + "/deleteCbbTabSearch/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }





//    public void updateCbbTabColSearch(CbbTabColSearch cbbTabColSearch) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("cbbTabColSearch",cbbTabColSearch);
//        String url = BASE_PATH + "/updateCbbTabColSearch/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }


    /**
     *更新字段排序信息
     * @param beanBase
     */
    public void updateCbbTabColSort(avicit.platform6.core.domain.BeanBase beanBase) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("beanBase",beanBase);
        String url = BASE_PATH + "/updateCbbTabColSort/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }


    /**
     *初始化字段同步业务表
     * @param sysId
     * @param orgId
     * @param deptId
     * @param loginUserId
     * @param loginIp
     */
    public void sameCbbTabColumnsData(String sysId,String orgId,String deptId,String loginUserId,String loginIp) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("sysId",sysId);
        resMaps.put("orgId",orgId);
        resMaps.put("deptId",deptId);
        resMaps.put("loginUserId",loginUserId);
        resMaps.put("loginIp",loginIp);
        String url = BASE_PATH + "/sameCbbTabColumnsData/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }


    /**
     *删除生成方式规则信息
     * @param cbbTabFormSelect
     */
    public void deleteCbbTabFormSelectById(avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabFormSelect cbbTabFormSelect) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("cbbTabFormSelect",cbbTabFormSelect);
        String url = BASE_PATH + "/deleteCbbTabFormSelectById/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }


    /**
     *根据排序字段ID获取该对象
     * @param id
     * @return
     */
    public CbbTabColSort getCbbTabColSortById(String id) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("id",id);
        String url = BASE_PATH + "/getCbbTabColSortById/v1";
        ResponseMsg<CbbTabColSort> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColSort>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }





//    public void exportExcelModule(List<String> headValue,java.io.ByteArrayOutputStream out) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("headValue",headValue);
//        resMaps.put("out",out);
//        String url = BASE_PATH + "/exportExcelModule/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }


    /**
     *新增系统代码维护信息
     * @param cbbTabColSysCode
     */
    public void insertTabColSysCode(avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColSysCode cbbTabColSysCode) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("cbbTabColSysCode",cbbTabColSysCode);
        String url = BASE_PATH + "/insertTabColSysCode/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }


    /**
     *还原数据
     * @param tabNodeId
     * @param tableId
     */
    public void restoreCbbTabRecordData(String tabNodeId,String tableId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("tabNodeId",tabNodeId);
        resMaps.put("tableId",tableId);
        String url = BASE_PATH + "/restoreCbbTabRecordData/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }





//    public void insertCbbTabColSearch(avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColSearch cbbTabColSearch) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("cbbTabColSearch",cbbTabColSearch);
//        String url = BASE_PATH + "/insertCbbTabColSearch/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }





//    public Map<String, Object> getPageDetailListForZL(avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns> page,Map<String, Object> parameter,String sysId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("page",page);
//        resMaps.put("parameter",parameter);
//        resMaps.put("sysId",sysId);
//        String url = BASE_PATH + "/getPageDetailListForZL/v1";
//        ResponseMsg<Map<String, Object>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Map<String, Object>>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }


    /**
     *新增生成方式规则信息
     * @param cbbTabFormSelect
     */
    public void insertCbbTabFormSelect(avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabFormSelect cbbTabFormSelect) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("cbbTabFormSelect",cbbTabFormSelect);
        String url = BASE_PATH + "/insertCbbTabFormSelect/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }


    /**
     *代码维护模块,将excel文件中的数据添加到数据库表中
     * @param datas
     * @param orgId
     * @param deptId
     * @param sysId
     * @param columnId
     * @param tableId
     */
    public void inserColCodetFromExcel(Vector<Vector<String>> datas,String orgId,String deptId,String sysId,String columnId,String tableId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("datas",datas);
        resMaps.put("orgId",orgId);
        resMaps.put("deptId",deptId);
        resMaps.put("sysId",sysId);
        resMaps.put("columnId",columnId);
        resMaps.put("tableId",tableId);
        String url = BASE_PATH + "/inserColCodetFromExcel/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }





//    public Page<Map<String, Object>> getPageTabSearchList(avicit.platform6.core.dao.Paging<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColumns> page,Map<String, Object> parameter) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("page",page);
//        resMaps.put("parameter",parameter);
//        String url = BASE_PATH + "/getPageTabSearchList/v1";
//        ResponseMsg<Page<Map<String, Object>>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<com.github.pagehelper.Page<Map<String, Object>>>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }


    /**
     *索引主页面数据更新方法
     * @param updatetData
     * @param sysId
     * @param nodeId
     * @param nodeName
     * @param tableName
     * @param orgId
     * @param deptId
     * @param loginUserId
     * @param loginIp
     */
    public void updateCbbTabIndex(String updatetData,String sysId,String nodeId,String nodeName,String tableName,String orgId,String deptId,String loginUserId,String loginIp) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("updatetData",updatetData);
        resMaps.put("sysId",sysId);
        resMaps.put("nodeId",nodeId);
        resMaps.put("nodeName",nodeName);
        resMaps.put("tableName",tableName);
        resMaps.put("orgId",orgId);
        resMaps.put("deptId",deptId);
        resMaps.put("loginUserId",loginUserId);
        resMaps.put("loginIp",loginIp);
        String url = BASE_PATH + "/updateCbbTabIndex/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }





//    public void deleteCbbTabIndexDataById(String deleteData,String sysId,String nodeId,String nodeName,String tableName,String orgId,String deptId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("deleteData",deleteData);
//        resMaps.put("sysId",sysId);
//        resMaps.put("nodeId",nodeId);
//        resMaps.put("nodeName",nodeName);
//        resMaps.put("tableName",tableName);
//        resMaps.put("orgId",orgId);
//        resMaps.put("deptId",deptId);
//        String url = BASE_PATH + "/deleteCbbTabIndexDataById/v1";
//        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
//        });
//        return;
//    }





//    public List<Object[]> getLookupCodeByColumnId(String columnId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("columnId",columnId);
//        String url = BASE_PATH + "/getLookupCodeByColumnId/v1";
//        ResponseMsg<List<Object[]>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<List<Object[]>>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public Boolean checkIndexNameIsUnique(String indexName,String insertData) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("indexName",indexName);
//        resMaps.put("insertData",insertData);
//        String url = BASE_PATH + "/checkIndexNameIsUnique/v1";
//        ResponseMsg<Boolean> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<Boolean>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public List<String> getTjscConfigformanager(String sourceColumnId) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("sourceColumnId",sourceColumnId);
//        String url = BASE_PATH + "/getTjscConfigformanager/v1";
//        ResponseMsg<List<String>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<List<String>>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }





//    public CbbTabColSearch getCbbTabColSearchById(String id) {
//        Map<String,Object> resMaps = new HashMap<>();
//        resMaps.put("id",id);
//        String url = BASE_PATH + "/getCbbTabColSearchById/v1";
//        ResponseMsg<CbbTabColSearch> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColSearch>>() {
//        });
//        return RestClientUtils.getResponseBody(responseMsg);
//    }


    /**
     *根据索引ID获取索引数据
     * @param id
     * @return
     */
    public CbbTabColIndex getCbbTabColIndexById(String id) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("id",id);
        String url = BASE_PATH + "/getCbbTabColIndexById/v1";
        ResponseMsg<CbbTabColIndex> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabColIndex>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     *根据生成方式规则ID获取该对象
     * @param id
     * @return
     */
    public CbbTabFormSelect getCbbTabFormSelectById(String id) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("id",id);
        String url = BASE_PATH + "/getCbbTabFormSelectById/v1";
        ResponseMsg<CbbTabFormSelect> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<avicit.cbb.techclass.tabledefine.commtablemanager.domain.CbbTabFormSelect>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }


    /**
     *索引主页面数据新增方法
     * @param insertData
     * @param sysId
     * @param nodeId
     * @param nodeName
     * @param tableName
     * @param orgId
     * @param deptId
     * @param loginUserId
     * @param loginIp
     */
    public void insertCbbTabIndex(String insertData,String sysId,String nodeId,String nodeName,String tableName,String orgId,String deptId,String loginUserId,String loginIp) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("insertData",insertData);
        resMaps.put("sysId",sysId);
        resMaps.put("nodeId",nodeId);
        resMaps.put("nodeName",nodeName);
        resMaps.put("tableName",tableName);
        resMaps.put("orgId",orgId);
        resMaps.put("deptId",deptId);
        resMaps.put("loginUserId",loginUserId);
        resMaps.put("loginIp",loginIp);
        String url = BASE_PATH + "/insertCbbTabIndex/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }


    /**
     *清理组织下所有库表数据
     * @param param
     */
    public void deleteCommTableManagerDatasByOrgId(Map<String, Object> param) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("param",param);
        String url = BASE_PATH + "/deleteCommTableManagerDatasByOrgId/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }


    /**
     *根据tabNodeId删除节点著录定义配置信息
     * @param tabNodeId
     */
    public void deleteCbbTabNodeRecordByTabNodeId(String tabNodeId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("tabNodeId",tabNodeId);
        String url = BASE_PATH + "/deleteCbbTabNodeRecordByTabNodeId/v1";
        ResponseMsg responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg>() {
        });
        return;
    }


    /**
     *参考模板复制字段信息加载库结构树
     * @param id
     * @param copyNodeData
     * @param sysId
     * @param orgId
     * @return
     */
    public List<TreeNode> recurFindTreeNodesByParentIdInCommTemplet(String id,String copyNodeData,String sysId,String orgId) {
        Map<String,Object> resMaps = new HashMap<>();
        resMaps.put("id",id);
        resMaps.put("copyNodeData",copyNodeData);
        resMaps.put("sysId",sysId);
        resMaps.put("orgId",orgId);
        String url = BASE_PATH + "/recurFindTreeNodesByParentIdInCommTemplet/v1";
        ResponseMsg<List<TreeNode>> responseMsg = restClient.doPost(SERVICE_CODE, url, resMaps, new ParameterizedTypeReference<ResponseMsg<List<avicit.platform6.commons.utils.web.TreeNode>>>() {
        });
        return RestClientUtils.getResponseBody(responseMsg);
    }





}
